package com.ruoyi.loan.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 贷款申请对象 tb_loan
 * 
 * @author jy
 * @date 2023-01-16
 */
@Data
public class TbLoan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 贷款申请ID */
    private Long loanId;

    /** 期数种类ID */
    @Excel(name = "期数种类ID")
    private Long periodsId;

    /** 利率种类ID */
    @Excel(name = "利率种类ID")
    private Long rateId;

    /** 还款方式ID */
    @Excel(name = "还款方式ID")
    private Long refundId;

    /** 贷款额度 */
    @Excel(name = "贷款额度")
    private Long loanRealQuota;

    /** 贷款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "贷款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date loanTime;

    /** 贷款凭证 */
    @Excel(name = "贷款凭证")
    private String loanProof;

    /** 还款计划 */
    @Excel(name = "还款计划")
    private Integer repayId;

    /** 贷款人 */
    @Excel(name = "贷款人")
    private Integer userId;

    /** 贷款申请状态（0未通过 1以通过） */
    private Long status;

    /** 删除标志（0代表存在 2代表删除） */
    private Long delFlag;

    /** 还款方式信息 */
    private List<TbRefund> tbRefundList;

    /** 冗余字段  期数种类名称 利率种类名称 还款方式名称 */
    private String periodsName;

    private String rateName;

    private String refundName;


}
